package com.zzyl.serve.vo;



import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author null
 */
@Data
@ApiModel("设备详情Vo")
public class DeviceInfoVo {
    @ApiModelProperty("设备id")
    private Long id;

    @ApiModelProperty("物联网设备id")
    private String iotId;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("设备标识码")
    private String nodeId;

    @ApiModelProperty("设备秘钥")
    private String secret;

    @ApiModelProperty("产品id")
    private String productKey;

    @ApiModelProperty("产品名称")
    private String productName;

    @ApiModelProperty("位置类型 0 随身设备 1固定设备")
    private Integer locationType;

    @ApiModelProperty("绑定位置,如果是随身设备为老人id，如果是固定设备为位置的最后一级id")
    private Long bindingLocation;

    @ApiModelProperty("接入位置")
    private String remark;

    @ApiModelProperty("设备状态，ONLINE：设备在线，OFFLINE：设备离线，ABNORMAL：设备异常，INACTIVE：设备未激活，FROZEN：设备冻结")
    private String deviceStatus;

    @ApiModelProperty("激活时间,格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime activeTime;

    @ApiModelProperty("创建时间,格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人id")
    private Long createBy;

    @ApiModelProperty("创建人名称")
    private String creator;

    @ApiModelProperty("位置备注")
    private String deviceDescription;
}